package com.xiaobaibai.common.response;

public enum ResponseCode {

    SUCCESS(0,"通用成功"),
    ERROR(1,"通用错误"),
    ILLEGAL(2,"非法令牌"),
    NOTOKEN(3,"未携带令牌");

    private final int code;

    private final String msg;

    ResponseCode(int code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public int getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }

}
